resolve dependencies in a Bower-friendly way