Fix error in repack.sh

This should fix an error happened in my environment.