The C version of path_id does not look at the environment anymore, so there is no reason to empty it.