Change fallback to same format as supported locales

Changed dash to underscore to match the replace that happens when reading the supported locales from the folder paths.

Also renamed local variables named `locale` so not to give new meaning to global variable.