linux: don't let `tee` interfere with $?
build: fix typo in updating code

Signed-off-by: Alejandro Mery <amery@geeks.cl>