Use buffered communication in popen_piped