Updated to match ToolsGUI's platform detection.