Resolve depth when following symlinks on scan