Added <module>/index.js case to discovery logic