Prevent dmypy from restarting if the configuration contains globs. (#7960)
If a configuration contains globs, then dmypy incorrectly detected
that the configration changed even though it did not.
This caused the daemon to always restart if a configuration contained globs.
Fixes #7576.