[Git][ghc/ghc][wip/mangoiv/ci-stages] configure: fix sed script and subst tooldir script