(qb) Fix bashism in Cg checks
Merge pull request #1034 from heuripedes/master

(qb) Fix bashism in Cg checks