Made install script work for OS X