fix Issue 11330 - Directory named as imported module should not stop module search
Merge pull request #2696 from WalterBright/fix11330

fix Issue 11330 - Directory named as imported module should not stop module search