Fix error in prepublish script