Don't overwrite files which have not changed
Also striping \r\n on all platforms.