Fix some problems with gather-day-logs.sh.