switch cachefiles to kern_path()