Fix dist package run unit test failed.

Signed-off-by: Wei Luo <luowei@yahoo-inc.com>
Merge pull request #1992 from luowei62/fix_ut

Fix dist package run unit test failed.

Reviewed-by: Loic Dachary <loic@dachary.org>