Fix path to output file: use platform-specific path separator