Ensure that grid span count is at least 1.
Improve automatic versioning.

- Ensure that we get at least a SHA if there are no tags
- Remove the `g` prefix in the SHA if one exists