Use = instead of == when running as sh

= is the POSIX equality test in shell script; when running as `/bin/sh`, it's enough to cause problems.