Fix some minor issues with publish script.