Fix filename check on fs watch handler.