Fix rails_env