Setting conditional directory check for name-spaced modules.
Merge pull request #1479 from shefik/dependency_module_path

Setting conditional directory check for name-spaced modules.