config/module: only return SkipDir if it is dot-prefixed