In OneShot mode, Finder ignores hiDir settings when looking for HomeModule
When compiling in OneShot mode, the Finder only looks for interface files (*.hi) even for home module as can be seen [here](https://gitlab.haskell.org/ghc/ghc/blob/cd85f8a71bb56cff332560e1d571b3406789fb71/compiler/main/Finder.hs#L323). The location making function used for these however, doesn't take into account the `hiDir` field of the current `DynFlags` of the session at all as can be seen [here](https://gitlab.haskell.org/ghc/ghc/blob/cd85f8a71bb56cff332560e1d571b3406789fb71/compiler/main/Finder.hs#L316) and [here](https://gitlab.haskell.org/ghc/ghc/blob/cd85f8a71bb56cff332560e1d571b3406789fb71/compiler/main/Finder.hs#L499). This strikes me as incorrect and should be unintentional.
issue