Support both standalone (aka top level) and modulized applications