Wait for the buffer to populate before reading the shell output
Merge pull request #1 from artiomchi/master

Wait for the buffer to populate before reading the shell output