t4006-diff-mode.sh: use the $( ... ) construct for command substitution