Improve the script for creating download links

— factorize the two scripts into a single one
— various safety and style improvements
1 job for master in 4 minutes and 4 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #5749
build

00:04:04