Bash: better ls feature detection.