check file extension when looking at package-declared "main"

This allows it to work with packages like `bootstrap`.
`debowerify` already does this.

By the way, I think `bower-resolve` should either be used by `debowerify`, or be a part of it.
What's your thought on this?