More tweaks to publish script