Wait for the buffer to populate before reading the shell output