Fix device version string check.