Fixes to hgdistver to handle stale tags, changes to address template