Support ls flags for linux and darwin