Also, move a couple of more path-related functions to path-util.c.
There are more than enough to deserve their own .c file, hence move them over.