If the languages folder doesn't exist scandir fails, check if it exists
Merge pull request #1271 from Mnkras/hotfix/cli-languages

If the languages folder doesn't exist scandir fails, check if it exists