Fixed standard out and standard error reads blocking if contents were not a complete line.