Fix OS detection syntax