updated bower
handling more corner cases