Allow application names to be nested in a module

This allows application objects nested one level into a Module to be autodetected. If a module
contain more than one app, the behaviour is undefined.