set correct RAILS_ENV