[Device management] Improve the parsing for OS of Desktop/Web sessions