Don't try to update submodules if no .git.

Otherwise, Configure will explode in a release.