Add tests of the make-archive-name script

Also fixed some formatting in make-archive-name so the comments
are easier to read.