resolve issue with possibility of having an old locale

- always determine the current locale before the update check
- added a test case to check the fall back functionality