Cleanup of publishing script