Updated file copy mech to overwrite files correctly