Don't even try to parse a version string if it's not a **Salt** git checkout. Fixes #8090.
Merge pull request #8172 from s0undt3ch/develop

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