manually create cache directories (#1440)