Removed dead lock on full buffer when sub process generates too much
output. Introduced async read to temporary file.