more sophisticated lookup for main

provides resolving of main js for such packages like underscore, backbone, json2 and others
will not pass the tests, because bower components directory has been changed since 0.10.0, nevertheless, i've another PR which fixes that https://github.com/yeoman/grunt-bower-requirejs/pull/40