Tweak windows detection

Same as used in Symfony Process, also fixes WINNT etc