Make hobbes work on linux.

Decouple handleEvent by using ActionPredicate in watchTree.