calibrate_cpuinfo: ensure we do not overflow buffer unit

cppcheck found a potential buffer overflow:

[common/os/os_util.c:212]: (error) Width 10 given in format string
  (no. 2) is larger than destination buffer 'unit[10]', use %9s to
  prevent overflowing it.

Increase unit array to 11 bytes.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
mgen: calibrate_cpuinfo: ensure we do not overflow buffer unit

cppcheck found a potential buffer overflow:

[test/mgen/mgen.c:219]: (error) Width 10 given in format string
  (no. 2) is larger than destination buffer 'unit[10]', use %9s
  to prevent overflowing it.

Increase unit array to 11 bytes.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
tty colors are broken without using use_default_colors()

use_default_colors() is required to make the output look
correct in my gnome-terminal

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Only process pipe read if read was successful

Signed-off-by: Colin Ian King <colin.king@canonical.com>