Fix cachedir creation