fix test in PlatformUtil.onMacOSX to use System.getProperty("os.name")