function of replace win/unit path split