set HOME and cache directory