check Rails.env after loading Rails