Replace when/not with unless.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Merge pull request #5 from ruediger/master

Replace when/not with unless