[grid] Use element folder in dependency path.