export template tweaking


I'm trying to modify an export template so it will automatically point to a playlist in a sub-directory, named the same as the sub-directory. this works fine if all playlists are named playlist.m3u using this string:
a class="CDTitle" href="$replace(%_folderpath_rel%,,/)playlist.m3u"
but I'm naming the playlists in sub-directories using %_workingdir%.m3u
I can't seem to figure out how to get the export template to point to the individually named playlists, I tried using %_workingdir%.m3u but since I'm doing this from the artists main directory the exported file points to a playlist named after the main artist directory. any way I can do this?

$replace(%_folderpath_rel%,\,/)%_directory%.m3u should do the trick.

Best regards,
~ Florian