Fix bower not looking tags when target looks like a semver, fixes #872.

#872

Just a better fix for #872, with a little refactor of the findResolution function.

//cc @trask @svnlto