Fix for #1710.
Merge pull request #1711 from pullreq/bootstrap-sh-fix

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