Fix: ignore dirs with a leading . (fixes #1155)