Fix OS checking.