Make sure cache/name exists before copting in name cache.