Fix ruby version detection in bootstrap

The ruby install section did not correctly
handle the case where ruby was not present.

This patch adds a check

Change-Id: I0d4333e847545bc4bf5466367a761fd056d298d8
Merge "Fix ruby version detection in bootstrap"