setlocalversion: fix version for untaged nontip mercurial revs