fix setup script in mac os