adddng some osx compatibility for install script