adding support for RACK_ENV not only RAILS_ENV