Give priority for environment to Rails.env over RACK_ENV.