grab executable from rubygems

As done here d7fc97d3f90c0e30865d32ce202658f03248cacc
Merge pull request #11608 from arunagw/ruby-from-rubygems

grab executable from rubygems