Clean up orphaned tasks logs

Addresses #229

Without this, tasklogs will accumulate over time and eventually fill up
the master's disk.
I'd return here if `OSError` is raised and log a warning.  `listdir` will throw an error if `LOGFILES_DIR` does not exist and I'd rather we catch the error over check it with isdir to avoid race conditions.