Fix running gitstats with a non-tty stdin.