Check for ruby before setting ruby version