Modified hard link utility code to match overwrite behavior