Ok, well I figured out part of the issue.  The CSV file isn't being
written before the Zlib call.  If I break this up into two scripts, the
first that writes the file,  the second that zips it, things work.

Any idea why the CSV file wouldn't be saved when the block ends?