Apply patch file