Fixed ls dired issue on macs