fix deleting tmp folder for mac.

Signed-off-by: jlucidar <jlucidar@gmail.com>