[Fix #1418] Avoid deprecation warning for hidden directories

Even the recommended pattern style would generate "Warning: Deprecated pattern style" before this fix. Hidden directories are not matched with the new style of matching, but that's intentional, so there should be no warning. Hidden directories must be explicitly added in `Include` parameters in order to be inspected.

Fixes an unreleased bug, so no change log entry.