Fixed a bug on packaging script and added path configure for DA