Restore the old definition of path_via

As per #454 / #451.
Merge pull request #455 from JasonGross/restore-path-via

Restore the old definition of path_via
./autogen.sh