check for .git before submodule init/update.