make git mode work for submodules