First check if a .gitmodules file exists