Fix cache file saving in current working directory