Only overwrite the config if installing latest

This causes issues when you're using changed file detection as part of your build, even though the config doesn't change the file is touched when this is set to true.

I'm not entirely sure why you want the config re-written in any cases, but I assume it's needed when you're using latest.