Fix checking file exist even for 'stdin' log.