see http://www.igniterealtime.org/community/thread/28587
Wrong assumption on how File.listFiles() works causes problems.
there is a patch floating in the forums on this. putting it on the 3.x for review someday. Also bumped the thread to see what the current status is.
'int index = files.length;' usually works fine, at least as long all daily files exist and this should be the case, otherwise auditing makes little sense.