Refactor zip of output files into external class

This should make it simpler to solve the problem of this component not
working on Windows.