t9365-continuing-queries.sh: use the $( ... ) construct for command substitution