Fix persist on Windows when reading from a pipe