main doesn't always exist

When running from a cli, main is undefined.

See: https://github.com/mattrobenolt/raven-node/issues/66