allow directories with .yaml or .yml files

That last patch that accepted directories of files needed the files to end in .yml. This change will allow .yaml, too.