Fixes `list` for symlinks