fix bug that caused get_stdout to return only the partial stdout

This happened when using gevent and the stdout was very large.
update gitignore with .cache