taking care of nil RAILS_ENV