test-gitmw-lib.sh: use the $( ... ) construct for command substitution