Correct pre-publish script