dist/pull: fix tty check in log()