Check and install ruby version.