bootstrap.sh: fix CC detection
bootstrap.sh: fix CC detection

There were three errors in CC detection:

1. The wrong variable was used in the for loop.

2. The selected CC was checked for existence and execute perm,
   but instead of the full path to the executable just the basename
   was passed to test -x.

3. The info log message accidentally printed the value of CC.

thomie/cabal,eric-stanley/cabal,fugyk/cabal,triplepointfive/cabal,beni55/cabal,themoritz/cabal,seereason/cabal,typelead/epm,kolmodin/cabal,headprogrammingczar/cabal,lukexi/cabal,garetxe/cabal,triplepointfive/cabal,rimmington/cabal,gridaphobe/cabal,Heather/cabal,mydaum/cabal,plow-technologies/cabal,plow-technologies/cabal,anton-dessiatov/cabal,lukexi/cabal,christiaanb/cabal,ian-ross/cabal,martinvlk/cabal,randen/cabal,trskop/cabal,Helkafen/cabal,x-y-z/cabal,trskop/cabal,rimmington/cabal,plumlife/cabal,ghc-android/cabal,beni55/cabal,sopvop/cabal,edsko/cabal,mydaum/cabal,gbaz/cabal,thomie/cabal,sopvop/cabal,Heather/cabal,kolmodin/cabal,x-y-z/cabal,valderman/cabal,thoughtpolice/cabal,bennofs/cabal,corngood/cabal,corngood/cabal,sopvop/cabal,enolan/cabal,plumlife/cabal,mightybyte/cabal,thoughtpolice/cabal,martinvlk/cabal,kosmikus/cabal,valderman/cabal,kosmikus/cabal,Peaker/cabal,themoritz/cabal,ghc-android/cabal,randen/cabal,bennofs/cabal,mmakowski/cabal,Peaker/cabal,anton-dessiatov/cabal,ian-ross/cabal,seereason/cabal,Helkafen/cabal,themoritz/cabal,gbaz/cabal,mightybyte/cabal,garetxe/cabal,christiaanb/cabal,edsko/cabal,typelead/epm,mmakowski/cabal,eric-stanley/cabal,gridaphobe/cabal,fugyk/cabal,enolan/cabal,headprogrammingczar/cabal