Fix the check for version spec