You'd better use test.tmp_dir(), it will clean up itself automatically