Fix issues when application name does not match the main filename
Fix issues when application name does not match the main filename

svn path=/webdsls/trunk/; revision=4448

webdsl/webdsl,webdsl/webdsl,webdsl/webdsl,webdsl/webdsl