Added missing cache and log dirs.