GHCi panic with --print-libdir flag
Reported on GHC devs:
```
$ ghc-stage2 --print-libdir
/dane/projekty/ghc/build/inplace/lib
$ ghc-stage2 --interactive --print-libdir
ghc-stage2: panic! (the 'impossible' happened)
(GHC version 7.9.20141222 for x86_64-unknown-linux):
ghc-stage2: panic! (the 'impossible' happened)
(GHC version 7.9.20141222 for x86_64-unknown-linux):
v_unsafeGlobalDynFlags: not initialised
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
```
Does not happen with GHC 7.8.x.
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 7.9 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | high |
| Resolution | Unresolved |
| Component | Driver |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"GHCi panic with --print-libdir flag","status":"New","operating_system":"","component":"Driver","related":[],"milestone":"7.10.1","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"7.9","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"Reported on GHC devs:\r\n\r\n{{{\r\n$ ghc-stage2 --print-libdir\r\n/dane/projekty/ghc/build/inplace/lib\r\n$ ghc-stage2 --interactive --print-libdir\r\nghc-stage2: panic! (the 'impossible' happened)\r\n (GHC version 7.9.20141222 for x86_64-unknown-linux):\r\n ghc-stage2: panic! (the 'impossible' happened)\r\n (GHC version 7.9.20141222 for x86_64-unknown-linux):\r\n v_unsafeGlobalDynFlags: not initialised\r\n\r\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\r\n\r\n\r\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\r\n}}}\r\n\r\nDoes not happen with GHC 7.8.x.","type_of_failure":"OtherFailure","blocking":[]} -->
issue