Added tests for hookCommand

This PR fixes a small bug on windows and adds more unit tests for the uniter.
maybe `uniter.SearchExecutable` or something? and just take a charm directory and a relative slash-style path, perhaps? Then we can always just pass `(charmDir, "hooks/whatever")` or `, "actions/whatever")`, and get back a filesystem path for the executable that actually implements those callables