QPID-4776: Fixes building Ruby bindings on Cmake < 2.8

This patch fixes issues regarding finding the Ruby install and building
the bindings for it.

Contributed by Irina Boverman <iboverma@redhat.com>