Support for test environment with Driver machine and Test machine separated

Allow having machine where Driver connects (e.g. where Selenium server is running) to on a separate machine from one, where test are being executed.

Otherwise in such testing environment file upload test failed, because path to uploaded file was used not from machine where driver connected to, but from machine, where tests were executed.