added utility function urljoin_keep_path

Using this function will make the xmatch code more stable and easier to test.