add many missing `env` arg for cp.cache_file invoke

for winpkg, I'm not sure whether it need env or not.