Windows-specific fixes
Add assertions since parsing shellout output is quite fragile