Use minimal environment in Mercurial loader
This generalizes the work done in ef3a2ba79ea9 to (supposedly) all
places invoking Mercurial. In short, this limits the environment to the
smallest subset needed (i.e. $PATH) and uses the Mercurial-specific
variables to disable user customizations and configs.