Use portable string comparison

We support == in /bin/sh now, but it ought to be avoided, and my use of
it was accidental.