Check RAILS_ENV if RACK_ENV is not set