Fix Linux and ChromeOS platform version string parsing and add a spec.