Filter dot directories during validation

It seems that glob behaves differently on 13.1 then on SLES12. The dot
directories are only listed on SLES12, that's why the issue didn't come
up during development.

I have also added a universal unit test to check for the successful
filtering of dot directories.
It is still one line and it also should be one check.