Fix for windows path replacement