generateIndex, filter out non MD files