Fixed a bug that ignored dependencies name

I retry #29. :sweat:

`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