[skip-ci] Windows: handle no interactive display mode (ssh)
[skip-ci] Windows: handle no interactive display mode (ssh)

 - Switch to batch mode when ssh to a Windows machine, like other platforms
 - Protect against potential null GC values leading to the followin error:
   ```
   Gdk-CRITICAL **: file gdkgc.c: line 146: assertion `gc != NULL' failed
   ```

olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root