Determine if we're in dev mode by how the _base module is loaded instead of relying on an environment variable.
Don't use closure for native node code. This simplifies working with native modules and running in dev mode.