get correct git dir for submodule