consolidate checks for whether appnope should be used