Clean dist folders when building.

Fixes #406.

/CC @cvrebert