Check for main field in package.json file

fixes #586