fix diffing on mac systems