Fix LS command for solaris systems

Fixed ls command for solaris systems. Will use solaris ls version if it cant
find GNUs version of ls.