Fix version detection code for Rails 3.2.3+.