Better handling of detecting remote urls for file uploads when using saucelabs or browserstack