Improve autoload_paths section

[skip ci]
Merge pull request #18040 from jonatack/patch-11

Improve autoload_paths section [ci skip]