fix GIT versioning for projects without annotated tags

Alternative fix for #34