Detect ruby version