Use unless instead of 'if !expression'.

In ruby, ! is not only an operator but also a function call. Replacing
it with unless will make our scripts a little bit faster.

Fixes #77.