Fixed path handling bug on WIndows