NodePath: Make path computation deterministic