apple_set_os: halt on error, add missing newlines.