Test for Mercurial and install if needed for Go checkout.