fix patch installing script