Fix some bug in pack.py when building embeddingapi and this patch will not affect other suites