Fix OS specific check.