Fix typo in isSimilar.

@bug W-2363721@

@rev byao@
Add a setDaemon to allow the filemonitor to exit.
Merging origin/goliver/master-pending-isSimilar-fix into master