More tweaking of publish script