Added try catch block to deal with languages dir not found