add check for OS, linux or osx