improved check for main file

*comment on the source code says - Collects data from first found config file*
This fix the problem when in first file there is no **main** field at all.

example of problem bower modules:
- backbone-amd
- underscore-amd