Modified the automated ruby library finder

The version number is appended on my system, and the linker doesn't like
it.