OS detection for path splitting