Fix syntax error.

Lua doesn't use `!=`; it uses `~=` instead.