Fix locales path resolution with Python 3.