Fixed regex to match ruby version.