replace symlinks with hardlinks