Fixed parent directory comparison with the search string for child tasks