Separating OSX and Linux logic to run separately