Fix prepublish script