Fix scan_dict_deps.py to not use directories

See merge request gaudi/Gaudi!1241
17 jobs for b_componenthelp in 27 minutes and 27 seconds (queued for 9 seconds)
latest