submodule: teach rm to remove submodules unless they contain a git directory