(qb) Fix bashism in Cg checks