Could we change hg.exe to just hg? That covers non-Windows installs and still works for Windows, I think. And use $PATH instead of "path" to be consistent.