Truncate command name to 40 characters, before first newline, in case of multiline commands