Fix mercurial hook, issue #88