--app argument: Make sure found attribute is not a module.  Closes #1647
Temporary until 3.1.4 (Issue #1647)