Clean up orphaned tasks logs

Addresses #229

Without this, tasklogs will accumulate over time and eventually fill up
the master's disk.
I wish we had a more standard way of defining a root directory like we do on the agent.  I suppose until we've fully implemented a config file maintaining that across the project would be more effort than it's worth for now so I'll leave this one alone too.