Fixed path bugs on windows