Fix path replace error in windows