Added some support for bsd vs gnu ls