FIX #46: Fallback to index.js if no main attribute in package.json

This code seems only ever executed when no "package.json" file exists. And then it first tries "path/index.js" and if that doesn't exist it will do path.js. However, the check for path.js is already done in lines 137-139.

Do you have a concrete test case this relies on this check?