Fix: skip dot files and ignored dirs on traverse (fixes #1077, related to #814)