brew-test-bot: less code in begin block
brew-test-bot: install hg before fetching if necessary