fix path and array_walk error

Signed-off-by: Joachim Doerr <mail@joachim-doerr.com>