resolve symlinks in files_in_dir()