Rename gettail to path_tail.
Rename getnextcomponent path_next_component.