Fixed issue with OSX detected as linux