Fixed path_to_url when os.sep is not '/'.