[debian] make optional cw_basecubes installation (closes #5437903) [reviewed]