Windows fix

Some fixes for Windows OS.
I would name it `_fixPath` or `_resolvePath`.