Improved getOSName()