Fix #496 "ad ls" segfault if current directory is outside volume path.

Please review this patch. 

https://sourceforge.net/p/netatalk/bugs/496/