added OS detection for backslash/forwardslash changing