check-builtins.sh: use the $(...) construct for command substitution