Improve handling of chromedriver permissions.