Delete temporary directories at the end of tests (RIPD-460).