Clear the demos and dist folders in *-dist to avoid residual files

Renamed, moved or deetefiles remained in the *-dist banch
Merge pull request #1560 from LaurentGoderre/v3.0

Clear the demos and dist folders in *-dist to avoid residual files