Fix order in which psutil check is applied.

The scripting environment needs to have been started before we can
check for the package.
Refs #9843