cmake: don't use version-gen.sh on no /bin/sh environment

For example, Windows.