Handle package names containing '-' or '_' in the PyPiLocator