Fix endpoint_url generation when the target org has a custom login page
setup through My Domain which causes the instance_url returned from the
oauth call to be different.