taskd: bug fix from previous commit
taskd: bug fix from previous commit

directory validation needs to preceed other checks, or taskd will not start.

devpanel/serverlink,devpanel/serverlink,devpanel/serverlink,devpanel/serverlink,devpanel/serverlink