Fix processing of production.rb in Rails 3

Bad test coverage meant a bug in processing of `config/environments/production.rb` was totally broken. Fixed now.