Utility to apply diffs to files