Fixed error in the cleandist task

Now returns early if the dist folder does not exist.