Cache directory may be set via environment (#7016) (#7443)
This adds an environment variable MYPY_CACHE_DIR which can set the
current cache directory. This variable will override the cache_dir
setting in the configuration but can be overridden via the command line.
Fixes #7016.