check that the logfile is a file (and not /dev/null)