[Git][ghc/ghc][wip/mangoiv/27672] configure: fix sed script and subst tooldir script