Fixed CACHEDIR bug