Because array.reverse() affects the array and not just the result, the split array was out of order and generated incorrect paths when more than one level exists, e.g. a/b/index.dust became b/a/index.js. I just added a second .reverse().
Reverse the split path array a second time to put it back in the corr…
…ect order (so multi-level directory structures are processed correctly).