Making console tests play nicely on Windows