(graphiti) Improve OS detection