Fixed check for Git submodules.