Added some stuff to differentiate between Linux and Mac.