fix bug "gzip: stdout: Broken pipe" in apps.base.popen()