Restart app only if config changed

With this PR, if `config:set` or `config:unset` does not change the config then the app will not be restarted.