- Fix "Packages" file generation (no more contents appearing like

'["Filename: ....\n", ....]'
- Slight refactor to write to files while running instead of batching
  everything into an array to flush after completion.