Now properly supported nested modules as well as top level modules for import.

Signed-off-by: Rick Minerich <richard.minerich@gmail.com>