Automatically delete temporary directories when testing