Fix pkg.sh test script