added tear-down logic for temp config directory