taskd: fix bug introduced in previous commits

the fix on privsep introduced a new problem of directory permission settings.
This commit fixes the permissions and ownership on the directories used by
taskd.