Adding super-ugly function for easy OS detection