bz19968: fix filter logic for watched folders