issue#209: Set generator.appname to package.name, falling back to cwd

Set generator.appname to package.name, falling back to cwd