[DX] Re-work generate:bundle for simple app bundles #290

@weaverryan please review my pull request ;)
I would put the ``$shared`` check first, thus avoiding to do a strpos for nothing