Implemented path switch according to the detected operating system