m7-common: ensure /cache is formatted