Fixed bower installation issues

https://github.com/bower/bower/issues/1102