Minor formating.
Moved mercurial check into ensure hg current function.

Now issue a fatal error if mercurial is not found and it is required.