fix tmp/cache directory path.