make the build more robust to git failure

This fixes a problem where it fails if there are no local annotated tags