using os.pathsep instead of hardcoding the path separator