Ignore dot directories. Fixes #44.

Although #45 was opened, my comment/question didn't get a response and the PR contained no tests. This PR supersedes #45 and fixes #44.