builtin/rm.c: consolidate error reporting for removing submodules