configure: Fix escaping of `$tooldir`
In !9547 (closed) I introduced $tooldir
directories into GHC's default link and
compilation flags to ensure that our C toolchain finds its own headers
and libraries before others on the system. However, the patch was subtly
wrong in the escaping of $tooldir
. Fix this.
Fixes #22561.