Changed URI.join to File.join to prevent some issues.

When using an defined endpoint without a valid URI scheme or when using
an IPv6 address, URI.join will fail. File.join will not as it doesn’t
do the additional URI checks which in our case we don’t actually need
anyway.