Fix to detect newer versions of Rails.