Harden `git describe` parsing so it does not fail on awkward situations.

This issue came up because a user is using custom tags and git describe for him is something like `debian/0.11.1+ds-1-3-ga0afcb`.
Added unittests for this.