Fix repr
Supply stubbed is_modified so at least recently-tagged heads can produce suitable versions.
Throw in a heuristic to increase the priority of Mercurial or Git commands if the current directory is a Mercurial or Git repo.