Use Mercurial hg path instead of a hg.bat.