libdogleg: correct path identification