Windows compatibility

Changes for Windows path escaping