Fix ZIP export

Durn closures not capturing the filenames by value.