Fix profile check logic to distinguish ivi and iot