Correct boolean operators, fix version checking.

Everything works now, I think.