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