Use file-name-as-directory instead of format to build filenames