Update pack.py to support string format home folder path.