Fixes #4094: remove the use of list of directory with the transformer