making deletion of temp dir work again