Fix bug when cache folder is not existed