Remove temporary files after patching