Guess path to hg if not configured
Created originally on Bitbucket by Anonymous
We should guess the path to the executable by checking a series of paths like
- C:/Program/Mercurial/hg.exe
- C:/Program Files/Mercurial/hg.exe
And linux versions of common paths
Reported by chyssler