DRY up the runtime checks for Yosemite-specific stuff