Patch files using diff output