Adjust Mercurial execution so it works with version 1.9 and earlier.