use `process.platform === 'win32'` instead