adding tmp directory for cache when debug_mode == 0