Allow Ruby versions higher than 2.0.x

Replace regex' checking for 2\.0 with checks for 2\. preventing
Ruby 1.8 behavior in 2.1 and up.