Implement OSTYPE detection