fix Windows not splitting paths correctly