Rename gettail to path_tail.
Rename getnextcomp to path_next_component.