Windows test fixes in cmd/juju

Fixes for cmd/juju tests.