Fix wrapping of Ruby code for Ruby<1.9