Add some fix to packaging script.