Fix import paths.
Remove dependencies on juju version and osenv packages.
Unexport VersionCommand.