More robust locale matching

Not sure when this issue crept into the OLPC builds, but the locale
that is set by the manufacturing data is of the format es_UY.UTF-8
where as the format of the locales we get from parsing available
languages is es_UY.utf8

This patch matches based on the country code, ignoring the format of
the formating suffix.