Fixed a bug that ignored dependencies 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