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

This change also seems unnecessary. What's the test that requires this (and that is not covered elsewhere)?