correctly copy cache dirs