Get locale in a way that works on Linux