RAILS_ENV wasn't always getting set in time, changed the environment lookup and updated specs.
still had a failure here changed the env variable around a bit passes 100/100 times now
bumped version