autogen.sh: only run the 'git submodule' command if the .git directory exists