Correct zip generation logic

Previously, the individual file timestamps were disregarded and the
filenames used instead for comparison with the zip timestamp. This
commit corrects the regeneration logic, so that any file changes do
result in the zip being recreated.