Replace "(" ")" in commands with "{" "}"

CMake seems to have problems with open parens in commands; they get
passed through to the shell quoted.  Also, apparently && and || don't
group with the precedence I expected in the shell, so added another
layer of {}s.