add check for /Library Python

Closes #24788.