make sure task id directories are OK