Use ls emulation to support --dired option