Fix submodule logic in nested mounted github repos