ruby: set ruby path to opt_bin

Fix #34368