Improve language file check