Split out of #6862
When using the build event service (BES) together with remote caching / execution URIs to files are automatically translated to remote URIs pointing to the remote cache. This rewriting is disabled when the --experimental_remote_download_outputs flag is set.