Separate out data and upload paths in the code
Right now we're writing everything directly into workdir. Instead it would be better to use a clear folder structure. This would e.g. allow to keep data in mounted volumes, and would be generally safer.