[Git][ghc/ghc][wip/andreask/build-opt] 17 commits: Migrate `ghc-pkg` to use `OsPath` and `file-io`