Fix certdirectory tests leaking temp directories.
Merge pull request #1027 from candlepin/dgoodwin/certdir-leaks

Fix certdirectory tests leaking temp directories.