Fixed a potential deadlock if there's too much data on stdout

https://github.com/spotify/luigi/pull/34