fix getting and setting cpp version for brew
for non-brew cpp also
haltOnFailure and logEnviron...
Merge pull request #11 from caktux/master

fix getting and setting cpp version for brew