[Git][ghc/ghc][wip/T26521] ghc-toolchain: refactor, move lastLine to Utils