the checks failed to account for key-directory being inheritable. (cherry picked from commit d1e283ede1)
d1e283ede1