[Git][ghc/ghc][master] Adds the fucnction addDependentDirectory to Q, resolving issue #26148.