Quickfix to prevent 0-byte files written to Amazon S3

See Issue #232