handle midnight-time-problem also without linenumber in filename