Fixed namespace issue for pathlen function.