ruby: fix windows platform detection