ls: fix handling of symlinks by option -1