ensure RAILS_ENV is set correctly