Support package.json main or index.js optionally for train run & cycle