cleanup patch file