attempt to fix the problem with quoting the whole string when the path is os.path.pathsep