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.