Change WgtAppQueryInterface's logic of clearing tmp path