Fix and rename `remove` task in ReleaseCommand

It is now called `cleanup` to avoid conflicts and it is now properly invoked (removing a regression introduced with use of `system()`). Tests were also added.