Resolve cmd path on Windows