fix upzip hungup when temp dir exists