check for logfile existing and then rm