Added argument raise_on_empty_out to core.utils.sh
Added argument raise_on_nonempty_err to core.utils.sh