Properly handle hidden patterns

Treat them like directories.