Fixed the file exist syntax. Added in check when using dircolors and also added in seperate os checks when assigning alias to ls.