fixes and improvements to handling of git repo with no tags on branch.