Load dotenv only in development environment
Fix check for NODE_ENV in development