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.