Mostly fix submodules in offline github mode.