add script to work around issue between hg-git and Mercurial patches