fix platform detection

The regex match result is an array so this line `only_32    = platform is "win" or platform is "darwin"` was returning false when platform was `darwin` in my case