Implement OSTYPE detection everywhere possible