plugins/apprc_watcher: only set environment variables when they change