Fix rails_env var