Cache tmp directory fix