Call `rm -rf` in a more robust way. Fixes #2
Added tests for all our tasks.