Replace the directory dot-file exclusion test; move the language test within isFileExcluded for wider coverage