Fix nonstandard OS check