t4010-diff-pathspec.sh: use the $( ... ) construct for command substitution