fix creation of temp dir in EMCC_DEBUG for the first time