cmake: setup-hook.sh bug fix.

syntax for logical statement in condition test was wrong. This bug caused the following annoying error messages for packages that uses cmake build system.  
```
bash: [: -v: unary operator expected
```