Check production mode against env