Improve packaging script.