ruby: set ruby path to opt_bin

Fixes #34368.
Closes #35232.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>