Fix OSTYPE detection