feat: add support for the 'main' attribute from package.json

Fixes #16