Updates arch check to detect darwin