Update version and improve publish script