Remove path.py dependency (bug 1026472)

https://bugzilla.mozilla.org/show_bug.cgi?id=1026472

Stolen from mozilla/olympia#206