scanner: Support symlinks