add plugin dir with tmp file