keep finding little bugs here and there

tee would exit with status 1 on EOF.