Fix the detection of some sdk types on mac.

Refs #8

I still need to revalidate that sdk detection works properly in mac, win.