Add auto-clean to deploy task. Fixes #1512.