Setup script correctly compare input against regex.

This patch will fix `tools/setup` script problems. First, regex comparisons are now done right. Second, I have corrected brew install URL.