distinguish between osx and other linux distros. ref #2