Add missing cache and log folders