allow ext_dirs for grains
Merge pull request #10103 from makinacorpus/grains

allow ext_dirs for grains