Fixed prepublish script