add grunt option mainEntry and add option main for mainEntry in build result fixed #9