Reduce the scope of the check to variables that start with '()' or '(['

This unbreaks virtualenv and other tools that set PS1='(foo) ...'.