Added tests for hookCommand

This PR fixes a small bug on windows and adds more unit tests for the uniter.
Yeah, I think version.Current is the right driver for these sorts of juju-level decisions. We want to be able to test as much logic as possible *everywhere*, and monkey-patching the runtime package in order to do so is utterly yucky. Monkey-patching our own package? Not really so bad.