Fix a ruby syntax error: missing `")`
MINOR: whitespace; change `if not` to `unless`