The submodule-rm command currently assumes that the name of a module is equal to the path. This is true in most cases, as the path is used as name when adding a new submodule.
However, when moving a submodule, the name is not updated, so this doesn't hold for all cases.