fixed erroneous reference to global var name, transposed build and dist

Archive now goes into dist
changes archive name to use string interpolation on one line