diff: fix handling of binary rewrite diffs