Fixed python detection on Mac