fix file list containing folders