Fix the PLATFORM detect and change the use of win32console for only RUBY_VERSION < 2.0.0