Fix bootstrap.sh

CC detection was broken, and instead of reading from stdin `gzip -d FILE | tar -x -` tried to extract the file named `-`.

To be certain, the second commit should be tested on various platforms with different tar implementations. @pgj any thoughts on the portability of that commit?