set "App" to @app_name in the component generator, fixes #1567

ref #1567 
@systematicfrank Could you try this changes?