Call readlines() before stdout is discarded

Closes gh-12 (hopefully)
Fix another possible test failure
Merge pull request #13 from pexpect/mac-test-readlines

Mac test readlines