Correct, when running new, we are operating on the `NULL_PROJECT` which returns false for `isEmberCLIProject()`. As I mentioned below (in the normal comments) we should just ask the project for its name.  

If `NULL_PROJECT.prototype.name` returned `undefined`, then all you would need is this (or a ternary if you prefered (which I do not)):

```javascript
var packageName      = environment.project.name();

if (!packageName) {
  packageName = path.basename(process.cwd());
}
```