Fix crash when log files with bad names are found, only
Fix crash for PORT_LOGDIR containing ".log" (issue #4)