remove defunct submodules if they exist