Filter on flat field directory

Also, updated for latest Weka Segmentation versoin.