use __dirname to get the cache path right