Added check for OSX to use correct binaries