Cleanup after `server` and `build` commands.

Ensure that `tmp/` is cleaned up when the command is finished.