publish script

Minor changes to the publish script.