Do not change RAILS_ENV if it is already set.

This would allow RAILS_ENV to be set under env like other environment variables, instead of setting it in the script section. It would still default to "test" if it was left unset.