Directories are only matched once.
fixes #1