handle default mainClass setting in addition to discoveredMainClasses