Fix issue #10, delete temp empty dir at the end.