fix make cache dir bug