Improved prompt speed when hg is not installed.

Prevented bash from walking the path looking for hg when it is not
installed during each prompt refresh.