fix redirects

fixes #121, fixes #118
Or simply `path.join`, that will fix the double `//` too I think.