Better implementation for language listing (now locales are determined by the existence of the approprate dir in languages/)