Follow-up on PR #1105: use != for numeric comparison

This is sort of a cosmetic change, the script also worked with string
comparison.