Fix build task

6dacc01c055a2a6fa12e6e7768ff927c688bfdcc broke the build task - it wasn't passing along `dest`, and it wasn't using `rimraf` correctly. This PR makes it work again :)