set `require.main = module` when running a module from the `apollo` script

Fixes #12