Cleaning up the publish script.