Don't even try to parse a version string if it's not a **Salt** git checkout

Fixes #8090