bug: changed __dirname to cacheDir