Dont replace binary files
Make sure the replaced files have the same mode as original