FIX: relativeTo returns incorrect path when base path is empty and relat...

...ive path has a query string