TST: Fix detection of Windows platform