Detect valid shells and warn

Refs #11143

Pylint
Merge pull request #12501 from cachedout/11143

Detect valid shells and warn