Simplify path handling code
Simplify path handling code

magnusmorton/pycket,cderici/pycket,pycket/pycket,magnusmorton/pycket,pycket/pycket,magnusmorton/pycket,samth/pycket,samth/pycket,cderici/pycket,pycket/pycket,cderici/pycket,samth/pycket