Fix path in helper function

Accidently used argument 0 to dnav_get_directory function, which is not
the first argument as intended. Changed to 1.