Fixed broken logfile handling. Forgot to append.