Fix submodule_add not working if new submodule has submodules as well