fix issue with generated log file name (double '.')