new test for detect index.js module in dirs properly
detect index.js module in dirs properly