Detect valid shells and warn

Refs #11143

Pylint