Fix some bug in pack.py when building embeddingapi

Signed-off-by: yunfeix.hao <yunfeix.hao@intel.com>