Updated prepublish script.