More flexible sdk selection

since sdk not found will lead to confusing error message: " cannot load underlying module for 'CoreGraphics'