Fixed support for earlier versions of Ruby.