fix temp dir
fix backup loop exit, temporary folder