returning directories in assemble_filenames