A better way to detect and use the heroku env.