Sometimes, I get an extra '\n' when capturing stdout using `pipe_read`, but I'm sure it is not from the called process.