Add regex for working out darwin type