move unzip loop body to separate function to prevent lots of open files due to defer statements
move unzip loop body to separate function to prevent lots of open files due to defer statements

mstruebing/tldr,mstruebing/tldr