cleanup OS detection

- the wrong variable was set for OpenBSD and Solaris