More tests for path utils.

Which work, which makes me happy.
Merge pull request #1 from pjf/path_fixes

More tests for path utils.