Add Windows support
Emulate which command for Windows
Fix path separators at some places