Added condition to exclude files starting with a dot.
Usually those files contains medatada (like .directoty in KDE) and can confuse the generation of thumbnails and galleries.
Merge remote-tracking branch 'upstream/master'
Merge pull request #248 from mikitex70/master

Added exclusion of files starting with a dot