Fix location of log and cache directories