sh_out helper for checking shell command output