Ensure COMSPEC is preserved on Windows