correctly handle `./` parts of a rel path
remove uneeded var
don't apply directory conversions to the query string
add tests for spider::getUriBase()