fix tty reset

Would error out with "invalid arg" otherwise, because of the trailing newline. (stty (GNU coreutils) 8.21, Linux).