Rename fullpathcmp to path_full_compare.
Rename gettail_sep to path_tail_with_seperator.
Rename gettail to path_tail.
Rename getnextcomp to path_next_component.