Updated Ruby script to check for path.

The bin path was incorrectly assumed to exist, which is not true
if Ruby has not been installed.