Improve stability of CommandExecutorTest on MSWindows