core/config: watcherType uses env and platform params (#1460)
core/config: watcherType uses env and platform params (#1460)

We pass the process as the second parameter when calling
  `config.watcherType` but this param is destructured to extract its env
  and platform attributes.
  We should be using those in the function body instead of the `process`
  attributes directly (so we can pass different values in tests).
cozy-labs/cozy-desktop,cozy-labs/cozy-desktop,cozy-labs/cozy-desktop,cozy-labs/cozy-desktop