make reapAllProcesses test pass on windows

make the test pass on windows just like the fix for #21.