Bash here-document doesn't work with non-executable TMPDIR

Fixes https://travis-ci.org/sstephenson/ruby-build/builds/13131225