refer to #912 updated autoloading of modules

Removed the legacy check and added an is_dir check to do this only for modules that have a lib subfolder, so old module structure.
Merge pull request #954 from espaan/1.3

refer to #912 updated autoloading of modules