[script] Update pack.py to fix icon-opt issue

Signed-off-by: Hao yunfeix <yunfeix.hao@intel.com>
Merge pull request #805 from haoyunfeix/yunfei/update-icon-opt-issue-for-script

[script] Update pack.py to fix icon-opt issue