Fix issue showing dependency graph when dependencies contain non-npm dependencies (like git repos).