fixed prepare Modules function when no modules are defined
Merge pull request #139 from zelgerj/master

fixed prepare Modules function when no modules are defined