Bug fix to setupOSX