perl: Replace symlinks with hardlinks