misc/autogencode: do not overwrite files with identical copy (avoid rebuild)