Modified Mac setup script. Still not working entirely...