macosx: be more tolerant when checking for physical device (fixes #6253)