Made the creation of the scripts part of the "publish" and "publish-herd" ant tasks