Fixed a bug where the program is unable to write to any files on Linux/OSX because of the usage of \ instead of /