Don't rewrite the config file on every import.
Merge pull request #2805 from mdboom/config/always-write

Astropy 0.4 rewriting astropy.cfg all the time, leading to race conditions