Avoid $TMPDIR / linker detection conflict in bootstrap.sh. [Fix for #1710.]

Avoid `$TMPDIR` / linker detection conflict in bootstrap.sh. See #1673, resolves #1710.