added option 'main' which will be used if the package has no main files defined