Fix RUBY_PLATFORM constant to return same value as on MRI

Fixes #2588