refer to #912 updated autoloading of modules

| Q             | A
| ------------- | ---
| Bug fix?	| yes
| New feature?	| no
| BC breaks?	| no
| Deprecations?	| no
| Tests pass?	| -
| Fixed tickets	| refers to #945 and Pull request #912
| License	| MIT
| Doc PR	| -

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.