check-cpu.rb giving an error #812

compatibility for ruby 1.8.X