zip_open only likes files

zip_open fails with file content within a variable. So must write to a temporary file.
Added exit, for failing to write to own folder. Any seasoned contributor, do change if there are better ways to handle this.