Update deploy task to work again and move clean task to function call