Always use last git segment.

This fixes an issue we're currently having where `git describe --tags` return `1.7.0-beta.2-208-g6d1683e`, and thus the version becomes `1.7-208` instead of `1.7-g6d1683e`.