I could be wrong, but why not use <code>test.tmpdir</code> here?  That directory is automatically cleaned after each test runs.  Ignore this if it won't work for some reason I can't see.