Make platform version string parsing more robust.