Improved OS name detection