check for git repo before checking for submodules

fixes #222