Check DIR_LANGUAGES_CORE if $local file not found

Check DIR_LANGUAGES_CORE if $local file not found in DIR_LANGUAGES

- Refactor to flatten for new code and readability

http://www.concrete5.org/developers/bugs/5-6-1-2/dir_languages_core-is-not-used-in-concrete5_library_localization/