pub fn decode_output(bytes: &[u8]) -> Cow<'_, str>
Decodes the output of a shell command based on the OS and some heuristics