Changes to set RAYPATH on Windows platforms more reliably