Properly handle `git describe` with RC's and proper version comparison.
Properly handle shell unit tests which check versions.
Merge pull request #7359 from s0undt3ch/0.17

Cherry picked proper rc version handling