fixing path parsing for windows