Update detect-dependencies.js

An empty initialized componentConfigFile can cause "Cannot read property 'main' of undefined.", if there is no such file for the component.

Fixes issue #36 for grunt-bower-install.