Improve index.js special case handling

```js
// Previously
var codecs = require("./codecs/index");

// Now
var codecs = require("./codecs/");
```

Also handles paths in root directory