Group directories first on Linux