Provide overrides based on Ruby version so that a Ruby-1.8 app can scale

This addresses Bug 951389.