remove '==' bashism

'==' as an operator for [ is not defined by the posix standard, so it would create an error on systems where /bin/sh is dash instead of bash.
Merge pull request #1893 from bpow/patch-1

remove '==' bashism