Bug 971460 - Refactor path_append/prepend to accept multiple elements

* Update function declarations to match rest of file