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