Make build-test-list work on Windows.

readSync throws at EOF on windows rather than returning 0 bytes read.