fixed minor regression in logfile selection; added support for stdout