Fix bug in OSX sdkpath location code when multiple SDKs exist