t/t3511-cherry-pick-x.sh: use the $( ... ) construct for command substitution