Fix issue #1 with output dir removal