How about we use test instead of coercing the match result?

`if (/^win/.test(process.platform)) {`