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.
What does it test then? The test should actually make sure that the way we read directories works on both operating systems and gives us the results we expect.