command/agent: find proper private IP on Windows

/cc @armon