scan-for-best-tpr3.rb: Fix compatibility with newer versions of ruby

And now also require at least ruby 1.9