Handle nested submodule imports