For really crappy cases like `dir/file.js/index.js` where a directory is named `.js` or there's no extension and a `.js` file lives there as well as a directory.