uploadrefs: allow configuring; readability cleanup

The final copying step is avoided by constructing the files in the
releaseDir initially.