Changed OS detection to more reliable RBConfig instead of RUBY_PLATFORM constant