Fixed the clean tasks and dist task.

* Dist task didn't work on unix systems.