[TO_STAGE] Bug 971460 - Refactor path_append/prepend to accept multiple elements