Handle submodules that aren't loaded yet in pathToEntry.