FIX: relativeTo returns incorrect path when base path is empty and relative path has a query string