Add missing [

The if statement seemed to work without [ but I suspect that was because my
`/bin/sh` is actually `bash`.