[utils] Add some predicates
[open] Don't try to run handlers on directories
[utils] Add some navigation functions