Improve Makefile: do not check submodules if not in a .git repository

This eliminates the error message "Not a git repository..." in the beginning of `make 3-stage-bootstrap` when not in a Git checkout.