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