Modules should not be exec'd directly.

Refs #10654
Merge pull request #10993 from cachedout/10654

Modules should not be exec'd directly.