t1001-read-tree-m-2way.sh: use the $( ... ) construct for command substitution