Ensure public/static and public/media exist.