Restrict path replacing in the parser to Windows platforms.