first stab at OSX OS detection.  renamed $linux to $os since conditional execution depending on flavor of Linux really doesn't describe the situation any more.