overwrite out-dated config file

Fixes #83.
@ben-jones, please review.
why temp_conf? You could just leave it as configuration or just conf and use the same variable name throughout?

Also, you can make this code much more concise be reusing the parsed/created configuration. Basically, you keep what I have, but you overwrite if the version doesn't match.