Use os.sep in path2path() method to make it properly platform independent.