Bring back fetching in the the cache directory for file://

A better solution to prevent that will be added, this allows correctness of integrity checking