Remove path.py dependency (bug 1026472)

https://bugzilla.mozilla.org/show_bug.cgi?id=1026472

Stolen from mozilla/olympia#206
I'll take a look and maybe open up another bug about it tomorrow.