use absolute path instead of relative path. so repack.py can be executed anywhere.
remove -name .git -prune. sed doesn't have any warning msg.