Better way to sort directories first in dired.

Also fix dired-nautilus setup bug.