Fixes issue #227 and Fixes issue #228

There is some oddness in the parsing of submodules tied to the way it loads sub-modules that are relative to the module.

This fix understands if the module is a global module or one that is a sub-module.