Set environment from NODE_ENV before falling back to 'development'