Fixed a bug that ignored dep.name

`dep.name` is ignored when dependencies have no parentPath.
e.g. brubch-with-chaplin`s scaffold https://github.com/paulmillr/brunch-with-chaplin/blob/master/generators/scaffold/generator.json