Start capturing stdout earlier in the test.

Attempts to correct test race condition seen in
https://travis-ci.org/yui/yeti/jobs/20017403