support deprecated RAILS_ENV