p5302-pack-index.sh: use the $( ... ) construct for command substitution