Fixing temp dir deletion in tearDown methods.