Sure "/" will do fine too, that is also the way it is already fixed in the code. The variable with problems is only used in windows version to avoid right restrictions.
For sure having to deal with '\' is a PITA (there is a lot of "escaping" code throughout the CIYAM project that is conditionally compiled for Windows although I would have thought that Java programs wouldn't have such problems).