main doesn't always exist

When running from a cli, main is undefined.

See: https://github.com/mattrobenolt/raven-node/issues/66
Merge pull request #1 from mattrobenolt/patch-1

main doesn't always exist