fix conditional syntax

I got a following error.

```
/.heroku/buildpack/bin/compile: line 90: [: missing `]'
```
It seems the syntax should be like `if [ condition ] && [ condition ]`. See <http://stackoverflow.com/a/13408590/1248952>