Correct behaviour of magenta-cli temp dir management