Fixed elastic sugar to delete temp dirs