On windows, insert path with forward slashes instead of backslashes

Example:
Before changes a path would get inserted in the following way:
"collections\links", which is problematic because now the backslash
escapes the next character instead of delimiting a directory.  After the
changes it will get inserted like this: "collections/links".

Note: I’m not a Python programmer, in fact this is the first time I dabbled in the language, so I hope I made this fix in a proper manner. It seems to work though;)