automated checking for MAC OS

platform.system() returns ‘Darwin’ if Mac OS.\