fix the path replacement on win32