add support for component as well as bower
Merge pull request #215 from jonathanong/component

add support for component as well as bower