fix url parsing when url passed in as string

was struggling to get wd. to connect to a chromedriver process when passing url in as a string, but it was working fine if I passed it through url.parse first. tracked it down to this block which currently omits the call to buildConfigUrl() if the argument is a url string.