[bash] add equivalent way to get to hg root