fixed to work generally with bower 1.0.0 (hopefully)

fixed to work generally with bower 1.0.0 (hopefully)