Fixed escaping in bb; reverted changes in CMake

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>