Fix scan_dict_deps.py to not use directories

See merge request gaudi/Gaudi!1241
18 jobs for master in 32 minutes and 31 seconds (queued for 12 seconds)
latest