Corrected rails_env reading.