Detect symlink cycles in app dirs.