actually read files when compiling to zip

The change in 1dfc782 forgot to open the source files and wrote the filenames instead.