git-apply: be a lot more careful when writing files