Handle case sensitivity issues with pypi better

The index is apparently case insensitive (or at least no one has uploaded two
packages whose names differ only by case as of the time of this writing), so
if the package name cannot be found, try to figure out the correct case for
it.