fix detection of when webdriver is local or remote