cmake: don't run version-gen.sh if the source isn't git cloned source