fix wrong checks with RUBY_PLATFORM