Replace the OS specific path separator with forward slash

This fixes the problem with backslashes on windows while not replacing them on unix.