Naive platform detection for Ruby