git-checkout.sh: use the $( ... ) construct for command substitution