Update macros/ruby.m4 for ruby 1.9.x

Used RbConfig instead of obsolete and deprecated Config.