replace symlinks with files