remove invalid submodule paths